package com.gy.smartmanagement.process.processdevice.mvp;

import com.gy.smartmanagement.base.mvp.HttpDelegate;
import com.gy.smartmanagement.process.processdevice.api.DeviceApiService;

import javax.inject.Inject;

public class DevicePresenter extends HttpDelegate implements DeviceContract.Presenter {

  private DeviceContract.IView iView;
  private DeviceApiService apiService;

  @Inject
  public DevicePresenter(DeviceContract.IView iView, DeviceApiService apiService) {
    this.iView = iView;
    this.apiService = apiService;
  }

  //修饰方法自动执行
  @Inject
  public void setUpPresenter() {
    iView.setPresenter(this);
  }


  @Override
  public void unBindPresent() {
    onUnSubscribe();
  }
}
